package util.parser;

import java.io.File;
import java.io.FileNotFoundException;
import java.util.Map;

public abstract class AbstractParser implements IParser {

	@Override
	public Map<String, String> getFileProperty(String fileName) throws FileNotFoundException {
		File file = new File(fileName);
		if (!file.exists()) {
			throw new FileNotFoundException(fileName);
		}
		return getFileProperty(file);
	}

	@Override
	public abstract Map<String, String> getFileProperty(File file);

}
